package com.ruoyi.framework.config;

import com.google.code.kaptcha.text.impl.DefaultTextCreator;

import java.util.Random;

/**
 * 验证码文本生成器 纯数字
 *
 * @author ruoyi
 */
public class KaptchaNumberTextCreator extends DefaultTextCreator {
    @Override
    public String getText() {
        Integer result = 0;
        Random random = new Random();
        int nextInt = random.nextInt(1000, 9999);
        return nextInt + "";
    }
}